package com.lq.ecoldchain.ui.mine.verified

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2018/12/26 0026  19:41
*function by lq
*/
val verfiedKodein = Kodein.Module("Verified_kodein_Module"){
    bind<VerifiedViewModel>() with scoped(AndroidLifecycleScope).singleton {
        VerifiedViewModel()
    }

    bind<VerifiedDelegate>() with scoped(AndroidLifecycleScope).singleton {
        VerifiedDelegate(
                viewModel = instance()
        )
    }
}